package com.atao.baokede.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * AI对话实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AiDialogue {
    /**
     * 对话id
     */
    private Long id;
    
    /**
     * 用户id
     */
    private Long userId;
    
    /**
     * 用户消息
     */
    private String userMessage;
    
    /**
     * AI回复消息
     */
    private String aiMessage;
    
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
}
